<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSystemRoleNodeTable extends Migration
{
    public function up()
    {
        Schema::create('system_role_node', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('role_id', false, true)->default(0);
            $table->string('node', 100)->default('');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    public function down()
    {
        Schema::dropIfExists('system_role_node');
    }
}
